Just like the title says..
I geterror and i included math.hundefined reference to `sqrt'
Using GCC by the way, in linux.
Just like the title says..
I geterror and i included math.hundefined reference to `sqrt'
Using GCC by the way, in linux.
"undefined reference" is a linker error - meaning that you didn't link with the code for the function it's complaining about. (Most of the times, #including something will not fix this)
For sqrt(), add -lm to your linker flags.
long time; /* know C? */
Unprecedented performance: Nothing ever ran this slow before.
Any sufficiently advanced bug is indistinguishable from a feature.
Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
The best way to accelerate an IBM is at 9.8 m/s/s.
recursion (re - cur' - zhun) n. 1. (see recursion)
Example:
Code:$ gcc -c -o main.o main.c $ gcc -c -o second.o second.c $ gcc -o myprogram main.o second.o -lm or, if you're doing it all in one line: $ gcc -o myprogram main.c second.c -lm
long time; /* know C? */
Unprecedented performance: Nothing ever ran this slow before.
Any sufficiently advanced bug is indistinguishable from a feature.
Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
The best way to accelerate an IBM is at 9.8 m/s/s.
recursion (re - cur' - zhun) n. 1. (see recursion)
Thanks!